<?php

namespace App\Providers;

use App\Http\ViewComposers\LeftComposers;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        /** 网站名称 */
        View::share('app_name',config('app.name','后台管理系统'));// title
        /** 前台地址 */
        View::share('front_url',config('app.front_url','http://localhost'));// front_url

        /********** 组件 **********/
        View::composer('home.composer.left',LeftComposers::class);
    }
}
